package com.itheima.day13.thread.test15;

public class Demo {
    public static void main(String[] args) {
        Desk desk = new Desk();
        desk.setCount(10);
        Foodie f = new Foodie(desk);
        Cooker c = new Cooker(desk);

        Thread t1 = new Thread(f);
        Thread t2 = new Thread(c);

        t1.start();
        t2.start();
    }
}
